package org.zfes.snowier.zbss.xzy.router.monitor;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zfes.snowier.auth.shiro.util.SecurityUtil;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.zbss.xzy.biz.config.model.ConfigCate;
import org.zfes.snowier.zbss.xzy.biz.config.service.IConfigCateService;
import org.zfes.snowier.zbss.xzy.biz.config.service.IConfigItemValueService;
import org.zfes.snowier.zbss.xzy.biz.device.model.Device;
import org.zfes.snowier.zbss.xzy.biz.device.service.IDeviceService;
import org.zfes.snowier.zbss.xzy.biz.dto.AIConfigItemValueDto;
import org.zfes.snowier.zbss.xzy.biz.solution.model.Algorithm;
import org.zfes.snowier.zbss.xzy.biz.solution.service.IAlgorithmService;

import com.google.common.collect.Lists;
@Controller 
@RequestMapping("/manager/monitor")
public class MonitorController implements BaseController {

	
	@Autowired
	private IDeviceService deviceService;

	@Autowired
	private IConfigItemValueService aIConfigItemValueService;
	@Autowired
	private IConfigCateService configCateService;
	@Autowired
	private  IAlgorithmService algorithmService;
	
	@RequestMapping(value="/loadMonitorDevice", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	public @ResponseBody  Object loadMonitorDevice(@RequestParam Map<String,Object> params){
	    DataSet dataSet=  deviceService.loadDeviceDataSet(params);
	    return ajaxQuery("dataSet", dataSet);
	}
	  
	  
  

}